<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0">
@section('head_info')
@show
<link href="{{asset('resources/assets/home/css/base.css')}}" rel="stylesheet">
<link href="{{asset('resources/assets/home/css/index.css')}}" rel="stylesheet">
@section('style')

@show()
<!--[if lt IE 9]>
<script src="{{asset('resources/assets/home/js/modernizr.js')}}"></script>
<![endif]-->
</head>
<body>
<header>
  <div id="logo"><a href="{{url('/')}}"></a></div>
  <nav class="topnav" id="topnav">
  @foreach($navs as $key=>$value)<a href="{{url($value->nav_url)}}"><span>{{$value->nav_name}}</span><span class="en">{{$value->nav_alias}}</span></a>@endforeach
  </nav>
</header>
@section('content')

@show
  <aside class="right">
    @section('right_top')
    <div class="weather"><iframe width="250" scrolling="no" height="60" frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=12&icon=1&num=1"></iframe></div>
    @show
    @section('news')
    <div class="news">
    <h3>
      <p>最新<span>文章</span></p>
    </h3>
    <ul class="rank">
      @foreach($new as $value)
      <li><a href="{{url('art').'/'.$value->art_id}}" title="{{$value->art_title}}" target="_blank">{{$value->art_title}}</a></li>
      @endforeach
    </ul>
    <h3 class="ph">
      <p>点击<span>排行</span></p>
    </h3>
    <ul class="paih">
      @foreach($hot as $value)
      <li><a href="{{url('art').'/'.$value->art_id}}" title="{{$value->art_title}}" target="_blank">{{$value->art_title}}</a></li>
      @endforeach
    </ul>
    <h3 class="links">
      <p>友情<span>链接</span></p>
    </h3>
    <ul class="website">
      @foreach($links as $value)
      <li><a href="{{$value->link_url}}">{{$value->link_name}}</a></li>
      @endforeach
    </ul> 
    </div> 
    @show  
    </aside>
</article>
@section('footer')
<footer>
  {!!Config::get('web.copyright')!!}
</footer>
@show

</body>
</html>
